package com.cc.mapper;

import com.cc.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 33314
* @description 针对表【book】的数据库操作Mapper
* @createDate 2025-05-26 19:25:31
* @Entity com.cc.entity.Book
*/
public interface BookMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKey(Book record);
    List<Book> selectAll();
    int addBook(@Param("book") Book book);
    int deleteBook(@Param("id") Integer id);
    int updateBook(@Param("book") Book book);
}
